package chap09.Animal;

public class Sheep extends Animal{
    public Sheep(String name, int id)
    {
        super(name, id);
    }
    @Override
    public void eat() {
        System.out.println("编号" + id + "姓名" + name + "正在吃草");

    }

    @Override
    public void sleep() {
        System.out.println("编号" + id + "姓名" + name + "正在睡觉");
    }

    @Override
    public void introduction() {
        System.out.println("编号" + id + "姓名" + name + "是一只羊");
    }
}
